package com.hbnu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hbnu.system.model.entity.Achievement;
import com.hbnu.system.model.entity.User;
import com.hbnu.system.model.query.AchievementPageQuery;
import com.hbnu.system.model.vo.AchievementVO;
import org.apache.ibatis.annotations.Param;

public interface AchievementMapper extends BaseMapper<Achievement> {

    IPage<AchievementVO> schoolGetRelateAchievementQuery(
            @Param("page") Page<AchievementVO> page,
            @Param("achievementPageQuery") AchievementPageQuery achievementPageQuery,
            @Param("user") User user
    );

    // 院级审核员查询：指定参数名为page、AchievementQuery、dept
    IPage<AchievementVO> collegeGetRelateAchievementQuery(
            @Param("page") Page<AchievementVO> page,
            @Param("achievementPageQuery") AchievementPageQuery achievementPageQuery,
            @Param("user") User user
    );

    // 用户查询：指定参数名为page、AchievementQuery、userId
    IPage<AchievementVO> userGetRelateAchievementQuery(
            @Param("page") Page<AchievementVO> page,
            @Param("achievementPageQuery") AchievementPageQuery achievementPageQuery,
            @Param("user") User user
    );

    IPage<Achievement> schoolExportRelateAchievementQuery(
            @Param("page") Page<Achievement> page,
            @Param("achievementPageQuery") AchievementPageQuery achievementPageQuery,
            @Param("user") User user
    );

    IPage<Achievement> collegeExportRelateAchievementQuery(
            @Param("page") Page<Achievement> page,
            @Param("achievementPageQuery") AchievementPageQuery achievementPageQuery,
            @Param("user") User user
    );

    IPage<Achievement> userExportRelateAchievementQuery(
            @Param("page") Page<Achievement> page,
            @Param("achievementPageQuery") AchievementPageQuery achievementPageQuery,
            @Param("user") User user
    );
    
    
}
